package com.yongjie.springbootlogin.service;

import com.yongjie.springbootlogin.entity.PesonInfo;
import com.yongjie.springbootlogin.mapper.PesonInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 个人信息
 */
@Service
public class PesonInfoService {
    /**
     * 注入dao
     */
    @Autowired
    PesonInfoMapper pesonInfoMapper;

    /**
     * 查询用户数据
     * @param
     * @return
     */
    public PesonInfo userinfo(String id) {
        PesonInfo info=  pesonInfoMapper.userinfo(id);
        return info;
    }

    /**
     * 修改员工信息
     * @return
     */
    public int upduserinfo(PesonInfo pesonInfo) {
     return   pesonInfoMapper.upduserinfo(pesonInfo);

    }
}
